home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "VB Example 23"
- ClientHeight = 4140
- ClientLeft = 1605
- ClientTop = 1650
- ClientWidth = 5115
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 4545
- Left = 1545
- LinkTopic = "Form1"
- ScaleHeight = 4140
- ScaleWidth = 5115
- Top = 1305
- Width = 5235
- Begin VB.TextBox InputFiles
- Height = 375
- Left = 1440
- TabIndex = 12
- Text = "Input Files"
- Top = 720
- Width = 3495
- End
- Begin VB.TextBox ArchiveName
- Height = 375
- Left = 1440
- TabIndex = 11
- Text = "Archive Name"
- Top = 240
- Width = 3495
- End
- Begin VB.CommandButton About
- Caption = "About"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3240
- TabIndex = 10
- Top = 1320
- Width = 1335
- End
- Begin VB.CommandButton ExitButton
- Caption = "Exit"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1680
- TabIndex = 9
- Top = 1320
- Width = 1335
- End
- Begin VB.TextBox JobProgressWindow
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Enabled = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2880
- TabIndex = 3
- Text = "JobProgressWindow"
- Top = 3120
- Visible = 0 'False
- Width = 1935
- End
- Begin VB.TextBox FileProgressWindow
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Enabled = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2880
- TabIndex = 2
- Text = "FileProgressWindow"
- Top = 2520
- Visible = 0 'False
- Width = 1935
- End
- Begin VB.TextBox TextWindow
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 495
- Left = 2640
- TabIndex = 1
- Text = "Text1"
- Top = 1920
- Width = 1935
- End
- Begin VB.CommandButton Compress
- Caption = "Compress"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 1320
- Width = 1335
- End
- Begin Threed.SSPanel SSPanel1
- Height = 495
- Left = 2640
- TabIndex = 4
- Top = 2520
- Width = 1935
- _Version = 65536
- _ExtentX = 3413
- _ExtentY = 873
- _StockProps = 15
- Caption = "FileProgressGauge"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- FloodType = 1
- End
- Begin Threed.SSPanel SSPanel2
- Height = 495
- Left = 2640
- TabIndex = 5
- Top = 3120
- Width = 1935
- _Version = 65536
- _ExtentX = 3413
- _ExtentY = 873
- _StockProps = 15
- Caption = "JobProgressGauge"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- FloodType = 1
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Caption = "Input Files:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- TabIndex = 14
- Top = 720
- Width = 1095
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Caption = "Archive Name:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 0
- TabIndex = 13
- Top = 240
- Width = 1095
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- Caption = "Job Percent Complete:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 480
- TabIndex = 8
- Top = 3120
- Width = 1815
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- Caption = "File Percent Complete:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 480
- TabIndex = 7
- Top = 2520
- Width = 1815
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- Caption = "File Being Compressed:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 480
- TabIndex = 6
- Top = 1920
- Width = 1815
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim LibraryHandle As Long
- Private Sub About_Click()
- frmAbout.Text1 = "EX23VB demonstrates the simplified interface. Compress will add INPUT*.DAT"
- frmAbout.Text1 = frmAbout.Text1 + " files to VB00.ZIP."
- frmAbout.Show 1
- End Sub
- Private Sub Compress_Click()
- Dim i As Integer
- About.SetFocus
- Compress.Enabled = 0
- ExitButton.Enabled = 0
- i = ALCreate(ArchiveName.text, InputFiles.text, 0, TextWindow.hWnd, FileProgressWindow.hWnd, JobProgressWindow.hWnd)
- ExitButton.Enabled = 1
- Compress.Enabled = 1
- Compress.SetFocus
- End Sub
- Private Sub ExitButton_Click()
- ' FreeLibrary (LibraryHandle)
- End
- End Sub
- Private Sub FileProgressWindow_Change()
- SSPanel1.FloodPercent = Val(FileProgressWindow.text)
- End Sub
- Private Sub Form_Load()
- ChDrive App.Path
- ChDir App.Path
- LibraryHandle = LoadLibrary(DLLName)
- If LibraryHandle = 0 Then
- InputFiles.text = "**ERROR LOADING " + DLLName + "**"
- Else
- InputFiles.text = "*.frm, input*.dat"
- End If
- ArchiveName.text = "vb00.zip"
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- FreeLibrary (LibraryHandle)
- End Sub
- Private Sub JobProgressWindow_Change()
- SSPanel2.FloodPercent = Val(JobProgressWindow.text)
- End Sub
- Private Sub TextWindow_GotFocus()
- ExitButton.SetFocus
- End Sub
-